import requests from '@/api/request'
// const SERVER_URL = 'user'
export default {
  // 贷前调查分页查询
  queryResearchByCondition (data) {
    return requests({
      url: `v1/api/case/case/research/queryByCondition`,
      method: 'post',
      data
    })
  },
  // 贷前调查撤回分派 /v1/api/case/case/research/assign/cancel
  cancelResearch (data) {
    return requests({
      url: `v1/api/case/case/research/assign/cancel`,
      method: 'post',
      data
    })
  },
  // 贷前调查分派受理人 /v1/api/case/case/research/assign/acceptor
  assignAcceptor (data) {
    return requests({
      url: `v1/api/case/case/research/assign/acceptor`,
      method: 'post',
      data
    })
  },
  // 查询分派受理人
  postQueryAcceptorsData (data) {
    return requests({
      url: `v1/api/user/user/query/assign/acceptors`,
      method: 'post',
      data
    })
  },
  // 通过ID查询申请件基本信息
  getBasicInfoData (data) {
    return requests({
      url: `v1/api/case/case/basic/queryById/${data}`,
      method: 'get'
    })
  },
  // 通过caseId查询申请件审批记录
  getAuditData (data) {
    return requests({
      url: `v1/api/case/case/audit/queryByCaseId/${data}`,
      method: 'get'
    })
  },
  // 通过caseid查询客户信息
  getCustomerInfo (data) {
    return requests({
      url: `v1/api/case/case/customer/queryByCaseId/${data}`,
      method: 'get'
    })
  },
  // 获取客户职业信息
  getCareerInfo (data) {
    return requests({
      url: `v1/api/case/case/career/queryByCaseId/${data}`,
      method: 'get'
    })
  },
  // 获取客户联系人信息
  getContactInfo (data) {
    return requests({
      url: `v1/api/case/case/contact/queryByCaseId/${data}`,
      method: 'get'
    })
  },
  // 获取影像信息
  getImageInfo (data) {
    return requests({
      url: `v1/api/third-party/image/queryByCaseId/${data}`,
      method: 'get'
    })
  },
  // 获取贷前调查信息
  getByResearchInfo (params) {
    return requests({
      url: `v1/api/case/case/research/queryByResearchId`,
      method: 'get',
      params
    })
  },
  // 根据用户id获取协议
  getContractAll (params) {
    return requests({
      url: `/v1/api/third-party/image/queryContractByCustomerId`,
      method: 'get',
      params
    })
  },
  // 调查专员分页查询
  queryAcceptorList (data) {
    return requests({
      url: `/v1/api/user/research/findUserOrgResearchList`,
      method: 'post',
      data
    })
  },
    // 房抵贷房产信息查询接口
    queryByCaseId (data) {
      return requests({
        url: `/v1/api/case/house/mortgage/loan/asset/queryByCaseId`,
        method: 'post',
        data
      })
    },
}
